var mysql=require('mysql');
var connection=mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'',
    port:'3306',
    database:'blog'
});
//与数据库进行链接
connection.connect();

module.exports=connection;